home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
diskmags
/
3565-4.665
/
dmg-4437
/
tut.11
/
l1.asc
next >
Wrap
Text File
|
1987-04-21
|
730b
|
35 lines
10 rem -----------------------------------
20 rem ---- Test for Connected Drives ----
30 rem -----------------------------------
40 cls
50 rem
60 rem ---- ERROR TESTING ----
70 rem
80 on error goto 310
90 rem
100 rem ---- DRIVE TESTING ----
110 rem
120 DRVS=drvmap
130 D$=bin$(DRVS)
140 A$=right$(D$,len(D$)-1)
150 CONNECT=len(A$)
160 CON=CONNECT
170 dim DRV$(CONNECT)
180 rem
190 rem ---- LOOP ----
200 rem
210 for F=1 to CONNECT
220 DV$=mid$(A$,CON,1)
230 DRV$(F)=DV$
240 print F;" is ";DRV$(F) : wait 20
250 dec CON
260 next F
270 print "You have ";F-1;" DRIVES CONNECTED"
280 rem
290 rem ---- ERROR ROUTINE ----
295 end
300 rem
310 print "ERROR";errn
320 print "AT LINE";errl
330 error errn